﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;

namespace PMS.Log
{
    public class Logger
    {
        private static ILog logger;

        static Logger()
        {
            log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo("log4net.config"));
            logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        }

        public static void Debug(Exception e, object message)
        {
            logger.Debug(message, e);
        }

        public static void Error(Exception e)
        {
            logger.Error(e);
        }

        public static void Error(object e)
        {
            logger.Error(e);
        }

        public static void Info(object e)
        {
            logger.Info(e);
        }


        public static void Warnning(object e)
        {
            logger.Warn(e);
        }
       
    }
}
